export const baseUrlApi = (url: string) => `/api/${url}`;

const getIP = () => {
  let IP = "";
  if (window.location.hostname) {
    IP = IP + window.location.hostname;
  } else {
    IP = IP + "127.0.0.1";
  }
  return IP;
};
export const ip = (url: string) => `${getIP()}:${url}`;
